import 'package:flutter/material.dart';
import 'package:jd_mall_flutter/pages/account/password_login.dart';
import 'package:jd_mall_flutter/pages/account/sms_registry.dart';
import 'package:jd_mall_flutter/pages/address/create.dart';
import 'package:jd_mall_flutter/pages/address/index.dart';
import 'package:jd_mall_flutter/pages/category/search_hot.dart';
import 'package:jd_mall_flutter/pages/goods/detail.dart';
import 'package:jd_mall_flutter/pages/goods/list.dart';
import 'package:jd_mall_flutter/pages/layout.dart';
import 'package:jd_mall_flutter/pages/account/sms_login.dart';
import 'package:jd_mall_flutter/pages/profile/my_collect.dart';
import 'package:jd_mall_flutter/pages/profile/my_history.dart';
import 'package:jd_mall_flutter/pages/profile/my_order.dart';

void main() {
  runApp(
    MaterialApp(
      // home: Scaffold()
      routes: {
        // ...
        // 首页/分类/购物车/我的页面 4个
        '/': (context) => Layout(),
        // 账号登录/注册页 3个
        '/account/sms_login': (context) => AccountSmsLogin(),
        '/account/sms_registry': (context) => AccountSmsRegistry(),
        '/account/password_login': (context) => AccountPasswordLogin(),
        // 首页子 3个
        '/category/search_hot': (context) => SearchHot(),
        '/goods/list': (context) => GoodsList(),
        '/goods/detail': (context) => GoodsDetail(),
        // 个人中心子 4个
        '/profile/address/create': (context) => AddressCreate(),
        '/profile/address/index': (context) => AddressIndex(),
        '/profile/my/order': (context) => MyOrder(),
        '/profile/my/collect': (context) => MyCollect(),
        '/profile/my/history': (context) => MyHistory(),
        // ...
      },
    ),
  );
}
